package ${packageName}.${moduleName}.dao${subModuleName}.impl;

import javax.annotation.Resource;
import java.util.List;
import java.util.Map;
import org.apache.commons.lang.StringUtils;
import org.hibernate.Criteria;
import org.hibernate.Hibernate;
import org.hibernate.Query;
import org.hibernate.SQLQuery;
import org.hibernate.Session;
import org.hibernate.SessionFactory;
import org.springframework.stereotype.Repository;
import ${packageName}.${moduleName}.dao${subModuleName}.${ClassName}Dao;
import javax.servlet.http.HttpServletRequest;

@Repository("${className}Dao")
public class ${ClassName}DaoImpl implements ${ClassName}Dao {

    @Resource(name = "sessionFactory")
    private SessionFactory sessionFactory;

    protected Session getSession() {
      return this.sessionFactory.getCurrentSession();
    }

}
